const { testFc, name } = require('./index.js');
const bigData = require('./data.js');

describe(name, () => {
  test('测试用例1', () => {
    expect(testFc([3, 4, 1, 2, 6], [[0, 4]])).toStrictEqual([false]);
  });

  test('测试用例2', () => {
    expect(
      testFc(
        [4, 3, 1, 6],
        [
          [0, 2],
          [2, 3],
        ]
      )
    ).toStrictEqual([false, true]);
  });

  // test('大量数据', () => {
  //   expect(testFc(bigData.nums, bigData.queries)).toStrictEqual([false, true]);
  // });
});
